package org.otherworld.frame.image;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class ImageFrame extends JFrame{

	private static final long serialVersionUID = 1L;
	
	public ImageFrame(String file) {
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		JLabel image = new JLabel();
		image.setIcon(new javax.swing.ImageIcon(file));
		this.add(image);
		this.pack();
	}

}
